namespace ScrumSprintMonitor.UI.Wpf.Avatars
{
	#region #using Directives

	using System;
	using System.ComponentModel.Composition;

	using Infrastructure;

	#endregion

	[Export(typeof(IAvatarProvider))]
	internal class LocalPictureAvatarProvider : IAvatarProvider
	{
		#region IAvatarProvider Members

		public string ProviderId
		{
			get { return "picture"; }
		}

		public IAvatar GetAvatar(string avatarKey)
		{
			return new WpfUriAvatar(new Uri(avatarKey, UriKind.RelativeOrAbsolute));
		}

		#endregion
	}
}